<template>
  <!-- 主页面 -->
  <el-container class="content">
    <!-- 左边菜单栏 -->
    <el-aside width="auto" style="background-color:#304156">
      <nav-menu :isCollapse="isCollapse"></nav-menu>
    </el-aside>
    <!-- 右边主体内容 -->
    <el-container>
      <!-- 头部工具栏 -->
      <el-header style="height:auto">
        <el-row>
          <!-- 右侧面包屑 -->
          <bread-crumb @childFn="childFn"></bread-crumb>
          <!-- 右侧全屏 -->
        </el-row>
        <!-- 标签页导航 -->
        <tab-page :colorVal="colorVal"></tab-page>
      </el-header>
      <!-- 显示菜单导航内容 -->
      <el-main>
        <keep-alive>
          <router-view></router-view>
        </keep-alive>
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
import NavMenu from "@/components/NavMenu.vue"  //左侧菜单
import BreadCrumb from "@/components/BreadCrumb.vue" //右侧面包屑
import TabPage from "@/components/TabPage.vue"  //右侧标签
export default {
  components: { NavMenu, BreadCrumb, TabPage },
  data() {
    return {
      isCollapse: false, //菜单是否为折叠状态
      colorVal: '',
    }
  },
  methods: {
    // 右侧面包屑
    childFn(val) {
      // console.log(val)
      this.isCollapse = val
    },
    // // 主题颜色
    // theme(value) {
    //   console.log(value)
    //   this.colorVal = value
    // }
  }
}
</script>

<style scoped lang="less">
.content {
  width: 100vw;
  height: 100vh;
}
// 右侧工具栏头部
.el-header {
  background-color: #ffffff;
  padding-right: 0;
}
//右侧主体部分
.el-main {
  background-color: #e9eef3;
}
</style>